<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src="js/json.js"></script>
	<script type="text/javascript" src="js/report.js"></script>
		<script type="text/javascript" src="js/prototype.js"></script>
	<script type="text/javascript">
	  var addUrl='<%=request.getContextPath()%>/servlet/ReportServlet';
    
    function getRequest(params){
	  new Ajax.Request(	
       addUrl ,
        {
            method: 'post',
            parameters: params,
            encoding:  'UTF-8',
            requestHeaders: {Accept:'application/json'}, 
            onComplete: reports              
        });
	  
	}
	
	
	

	   
	   function userList(){
	   var url='<%=request.getContextPath()%>/servlet/AjaxServlet';
	    getContent(url,'mydiv');
	   }
	
	
	
	</script>
  </head>
  
  <body>
  <div>
  
  
  
  <div style="padding-bottom: 40px;">
 
 <input type="button" value="研发一部人员" onclick="userList()">
  </div>
  
  
  <div id="mydiv" style="width: 400px;height: 400px;border: 1px;border-style: solid;">
  读取的内容会在这里显示！！
  </div>
  
  </div>
    
  </body>
</html>
